<%--
  Created by IntelliJ IDEA.
  User: 辰
  Date: 2023/12/6
  Time: 15:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>展示商品</title>
</head>
<body>
<table border="1">
    <tr>
        <th>商品编号</th>
        <th>商品名称</th>
        <th>商品价格</th>
    </tr>
    <c:forEach items="${allGoods}" var="goods">
        <tr>
            <td>${goods.id}</td>
            <td>${goods.gname}</td>
            <td>${goods.gprice}</td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
